# $Id$
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Dale Blount <dale@archlinux.org>

pkgname=perl-net-cidr-lite
_realname=Net-CIDR-Lite
pkgver=0.21
pkgrel=5
pkgdesc="Perl extension for merging IPv4 or IPv6 CIDR addresses"
arch=('any')
license=('PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/"
depends=('perl>=5.10.0')
options=(!emptydirs)
source=(http://search.cpan.org/CPAN/authors/id/D/DO/DOUGW/${_realname}-${pkgver}.tar.gz)
md5sums=('12280b3754886b876918f03f53aee4f5')

build() {
  cd ${srcdir}/${_realname}-${pkgver}
  # install module in vendor directories.
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd ${srcdir}/${_realname}-${pkgver}
  make install DESTDIR=${pkgdir}
}
